package com.lazily.innerclass;


/**
 * @Author:  GZQ
 * @date:  2025/2/16 14:24
 * @description: 练习
 */

public class InnerExerciseClass03 {

	// 程序入口
	public static void main(String[] args) {
		Test t = new Test();
		Test.Inner r = t.new Inner(); // 5
		System.out.println(r.a); // 5
	}
}


class Test {
	public Test() {
		Inner s1 = new Inner();
		s1.a = 10;
		Inner s2 = new Inner();
		System.out.println(s2.a);
	}

	class Inner { // 内部类, 成员内部类
		public int a = 5;
	}
}

